package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_production")
@NoArgsConstructor
public class ProductionEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String intro;
    private String equipment;
    private String shootAddress;
    private int returnFilm;
    private int isOneself;
    private String subjectIds;
    private Long userId;
    private String score;
    private int auditStatus;

    public ProductionEntity(String name, String intro, String equipment, String shootAddress, int returnFilm, int isOneself, String subjectIds, Long userId) {
        this.name = name;
        this.intro = intro;
        this.equipment = equipment;
        this.shootAddress = shootAddress;
        this.returnFilm = returnFilm;
        this.isOneself = isOneself;
        this.subjectIds = subjectIds;
        this.userId = userId;
    }
}
